package com.zb.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @Author WEN
 * @Date 2023/10/18 0018
 **/
@Data
@ApiModel("单选/多选内容对象")
public class FieldContentVo {
    @ApiModelProperty(value = "单选/多选内容ID，新增不必传，修改必传")
    private Long id;

    @Length(max = 50, message = "单选/多选内容长度限制 50 个字符")
    @ApiModelProperty(value = "单选/多选内容")
    private String val;

    public FieldContentVo() {
    }

    public FieldContentVo(Long id, String val) {
        this.id = id;
        this.val = val;
    }
}
